Repository navigation
Treat username "UnknownUser" as explicit unauthenticated access - #366
Conversation
389cc8c to
527456b
Compare
- BasicAuthorization: UnknownUser is resolved with an empty accessToken, empty header and no credentials; empty passwords are ignored, as for OAuth2 tokens - createSession: a blank or typed UnknownUser needs no password; a requested user that differs from the configured one does not inherit the configured password - resolveCredentials passes the session username through instead of mapping UnknownUser to "" - Settings schema: password requires username and is rejected alongside UnknownUser (any casing) - Add-server wizard writes username UnknownUser for the Unauthenticated choice - README documents UnknownUser as the only way to request unauthenticated access
…hrough a serialized settings writer - serverSetting.ts: updateConfig(scope, update) hands the 'intersystems.servers' value at each writable target to a pure function and writes back what it returns, queued behind earlier writes; undefined entries are ignored rather than deleting a target - getServerSpec: for a stored definition with neither username nor password, GET the Atelier root once per session per folder in the background; on a genuine server-info response set username UnknownUser at the defining target and toast. Legacy embedded servers are not probed - addServer and the registry import write through updateConfig - IServerSetting is based on IJSONServerSpec so it no longer carries name
|
This is going to need a companion in vscode-objectscript to update how it sets the |
|
Remaining todos:
|
gjsjohnmurray
left a comment
There was a problem hiding this comment.
All looking good to me
Resolves src/api/addServer.ts in favour of the updateConfig write; intersystems-community#368's typed inspect of the old inline write is superseded.
…verSpec/IServerSpec reshaping types 3.15.0-beta.2, generated from a single types/index.ts: - BasicAuthorization is exported for all extensions; base64 via TextEncoder/btoa so it also runs in the web bundle, and httpAuthorizationHeader is undefined while unresolved - IJSONServerSpec is one intersystems.servers entry (gains oauth2, loses auth); IServerSpec adds name and auth and deprecates username/password; IServerSpecWithAuth removed - Authorization and ResolvedAuthorization unchanged - index.js and index.d.ts are build outputs, kept committed and regenerated by prepublishOnly Extension: pin the published beta exactly; drop the local class and the internal IServerSetting/ OAuth2Config in favour of the package types; exclude types/ from the root tsconfig.
|
@gjsjohnmurray While adding support for Since the types package would be updated anyway, the same commit folds in the No client extension has to change: the published 3.14.1 types keep working against this build, and adopting the shared class is optional. The one removed export is Changes:
|
gjsjohnmurray
left a comment
There was a problem hiding this comment.
Thanks for the detailed explanation. I installed the dev VSIX and verified it worked OK with one of my extensions that depends on Server Manager.
They are build outputs of types/index.ts, produced by npm run build and by prepublishOnly.
Companion to intersystems-community/intersystems-servermanager#366, which makes "username": "UnknownUser" request unauthenticated access. - Use BasicAuthorization and the corrected spec types from the 3.15.0-beta.3 package instead of a local copy. - Skip the Authorization header when it is empty. - On a 401 for UnknownUser, report the rejection instead of asking for a password. - Compare intersystems.servers changes against getServerSpec, so recording UnknownUser doesn't reconnect. - Document UnknownUser in the objectscript.conn schema.
Companion to intersystems-community/intersystems-servermanager#366, which makes "username": "UnknownUser" request unauthenticated access. - Use BasicAuthorization and the corrected spec types from the 3.15.0-beta.3 package instead of a local copy. - Skip the Authorization header when it is empty. - On a 401 for UnknownUser, report the rejection instead of asking for a password. - Compare intersystems.servers changes against getServerSpec, so recording UnknownUser doesn't reconnect. - Document UnknownUser in the objectscript.conn schema.
Companion to intersystems-community/intersystems-servermanager#366, which makes "username": "UnknownUser" request unauthenticated access. - Use BasicAuthorization and the corrected spec types from the 3.15.0-beta.3 package instead of a local copy. - Skip the Authorization header when it is empty. - On a 401 for UnknownUser, report the rejection instead of asking for a password. - Compare intersystems.servers changes against getServerSpec, so recording UnknownUser doesn't reconnect. - Document UnknownUser in the objectscript.conn schema.
Companion to intersystems-community/intersystems-servermanager#366, which makes "username": "UnknownUser" request unauthenticated access. - Use BasicAuthorization and the corrected spec types from the 3.15.0-beta.3 package instead of a local copy. - Skip the Authorization header when it is empty. - On a 401 for UnknownUser, report the rejection instead of asking for a password. - Compare intersystems.servers changes against getServerSpec, so recording UnknownUser doesn't reconnect. - Document UnknownUser in the objectscript.conn schema. - Test UnknownUser for each connection kind. The '-anonymous' cases also accept UnknownUser, since Server Manager may record it during a run.
Companion to intersystems-community/intersystems-servermanager#366, which makes "username": "UnknownUser" request unauthenticated access. - Use BasicAuthorization and the corrected spec types from the 3.15.0-beta.3 package instead of a local copy. - Skip the Authorization header when it is empty. - On a 401 for UnknownUser, report the rejection instead of asking for a password. - Compare intersystems.servers changes against getServerSpec, so recording UnknownUser doesn't reconnect. - Document UnknownUser in the objectscript.conn schema. - Test UnknownUser for each connection kind. The '-anonymous' cases also accept UnknownUser, since Server Manager may record it during a run.
* Bump fast-uri from 3.1.0 to 3.1.2 (intersystems-community#1779) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.0 to 3.1.2. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.0...v3.1.2) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump axios from 1.15.0 to 1.15.2 (intersystems-community#1778) Bumps [axios](https://github.com/axios/axios) from 1.15.0 to 1.15.2. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.15.0...v1.15.2) --- updated-dependencies: - dependency-name: axios dependency-version: 1.15.2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kuang-Chen (KC) Lu <klu@intersystems.com> * Bump @nevware21/ts-utils from 0.12.5 to 0.14.0 (intersystems-community#1785) Bumps [@nevware21/ts-utils](https://github.com/nevware21/ts-utils) from 0.12.5 to 0.14.0. - [Release notes](https://github.com/nevware21/ts-utils/releases) - [Changelog](https://github.com/nevware21/ts-utils/blob/main/CHANGELOG.md) - [Commits](nevware21/ts-utils@0.12.5...0.14.0) --- updated-dependencies: - dependency-name: "@nevware21/ts-utils" dependency-version: 0.14.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ws from 8.20.0 to 8.20.1 (intersystems-community#1786) Bumps [ws](https://github.com/websockets/ws) from 8.20.0 to 8.20.1. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@8.20.0...8.20.1) --- updated-dependencies: - dependency-name: ws dependency-version: 8.20.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump axios from 1.15.2 to 1.16.0 (intersystems-community#1789) Bumps [axios](https://github.com/axios/axios) from 1.15.2 to 1.16.0. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.15.2...v1.16.0) --- updated-dependencies: - dependency-name: axios dependency-version: 1.16.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Reinstate reconnect option from status bar panel of isfs-type workspace (fix intersystems-community#1787) (intersystems-community#1788) * Update status of document after running server-side source control action on it when `respectEditableStatus` is set (intersystems-community#1792) * Ensure cookies are always fresh before starting a Lite Terminal (intersystems-community#1793) * Update release CI script to use `softprops/action-gh-release@v3` for Node 24 compatibility (intersystems-community#1790) * Prepare 3.8.2 release (intersystems-community#1794) * auto bump version with release * CI: bump actions/download-artifact to v8 for Node 24 compatibility (intersystems-community#1795) * Always overwrite entire class for `Pull Server Changes` when there's a conflict between the local copy and server copy (intersystems-community#1797) * Bump form-data from 4.0.5 to 4.0.6 (intersystems-community#1798) * Bump js-yaml from 4.1.1 to 4.2.0 (intersystems-community#1800) * Improve performance of server-side project query (intersystems-community#1809) * Bump axios from 1.17.0 to 1.18.0 (intersystems-community#1811) Bumps [axios](https://github.com/axios/axios) from 1.17.0 to 1.18.0. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.17.0...v1.18.0) --- updated-dependencies: - dependency-name: axios dependency-version: 1.18.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump fast-uri from 3.1.2 to 3.1.4 (intersystems-community#1812) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.2 to 3.1.4. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.2...v3.1.4) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update issue templates with new support statement (intersystems-community#1813) * Improve management of web sessions when connection changes (intersystems-community#1808) * Only timeout server connection check during extension activation (intersystems-community#1814) * Update `Open InterSystems Document...` command to show a flat list of documents (intersystems-community#1804) * Bump brace-expansion (intersystems-community#1816) Bumps and [brace-expansion](https://github.com/juliangruber/brace-expansion). These dependencies needed to be updated together. Updates `brace-expansion` from 5.0.6 to 5.0.9 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v5.0.6...v5.0.9) Updates `brace-expansion` from 1.1.13 to 1.1.18 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v5.0.6...v5.0.9) Updates `brace-expansion` from 2.0.3 to 2.1.4 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v5.0.6...v5.0.9) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 5.0.9 dependency-type: indirect - dependency-name: brace-expansion dependency-version: 1.1.18 dependency-type: indirect - dependency-name: brace-expansion dependency-version: 2.1.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump fast-uri from 3.1.4 to 3.1.5 (intersystems-community#1817) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.4...v3.1.5) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Sync server-side web app files as raw bytes (intersystems-community#1818) * OAuth2 VSCode (intersystems-community#1799) * Bump js-yaml from 4.2.0 to 4.3.1 (intersystems-community#1819) Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.2.0 to 4.3.1. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.1/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.2.0...4.3.1) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix incompatibilities with pre-OAuth2 version of Server Manager (intersystems-community#1820) * Prepare 3.8.3 release (intersystems-community#1821) * auto bump version with release * Fix password disclosure via serverForUri and stale cookie reuse after logout/401 (intersystems-community#1824) * Support abstract documents when importing a client-side folder (intersystems-community#1827) * Retry once and delete cookies on failed (intersystems-community#1830) * Prepare 3.8.4 release (intersystems-community#1831) * auto bump version with release * Fix crash when opening a file with no workspace folder open (intersystems-community#1834) * fix intersystems-community#1750 * Fix crash when opening a file with no workspace folder open (intersystems-community#1833) vscode.workspace.workspaceFolders is undefined when no folder/workspace is open, so the non-null assertion threw on every active editor change. * Fix crash from unresolved auth on named-server connections (intersystems-community#1836) * Restore unauthenticated-connection support (regression from OAuth2 rewrite) (intersystems-community#1840) * Fix intermittent issues when importing a client-side folder on Windows (intersystems-community#1839) * Fix server-side projects when connected to a very old server (intersystems-community#1842) * Skip credential resolution for inactive connections during activation (intersystems-community#1835) * save locally * save * Revert "save locally"; Add branchProtection This reverts commit 45b23b9. * Revert master to efe63d3 (before accidental personal-branch merge) Undoes 45b23b9, c48471c, 469ee89, c7afd54, which landed on master via an unintended fast-forward from a personal branch. * `serverForUri` should either set ns or be undefined (intersystems-community#1843) * Relax server-side URI validation for routines whose dotted section before the extension is only digits (intersystems-community#1845) * Deprecate configuring a server host/port/credentials in `objectscript.conn` (intersystems-community#1844) * `serverForUri` should preserve passwords stored in `settings.json["objectscript.conn"]` (intersystems-community#1846) * fix intersystems-community#1750 * no need to clear password * save * Prepare 3.8.5 release (intersystems-community#1850) * Bump browserslist from 4.28.1 to 4.28.8 (intersystems-community#1851) Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.28.1 to 4.28.8. - [Release notes](https://github.com/browserslist/browserslist/releases) - [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md) - [Commits](browserslist/browserslist@4.28.1...4.28.8) --- updated-dependencies: - dependency-name: browserslist dependency-version: 4.28.8 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump serialize-javascript and mocha (intersystems-community#1852) Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) to 7.1.1 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `serialize-javascript` from 6.0.2 to 7.1.1 - [Release notes](https://github.com/yahoo/serialize-javascript/releases) - [Commits](yahoo/serialize-javascript@v6.0.2...v7.1.1) Updates `mocha` from 11.8.0 to 12.0.0 - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md) - [Commits](mochajs/mocha@v11.8.0...v12.0.0) --- updated-dependencies: - dependency-name: serialize-javascript dependency-version: 7.1.1 dependency-type: indirect - dependency-name: mocha dependency-version: 12.0.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * auto bump version with release * Bump @xmldom/xmldom from 0.9.10 to 0.9.12 (intersystems-community#1854) * Bump @humanfs/node from 0.16.6 to 0.16.8 (intersystems-community#1855) * Bump fast-uri from 3.1.5 to 3.1.7 (intersystems-community#1856) * Fix docker-compose connections always prompting for password (intersystems-community#1860) * fix intersystems-community#1750 * Fix docker-compose connections always prompting for password resolveConnectionSpec's docker-compose branch built connSpec.auth as an empty BasicAuthorization(), discarding the plaintext password already resolved by serverForUri from objectscript.conn.password. * Fix broken Marketplace badges, drop superfluous ones in README (intersystems-community#1857) * fix intersystems-community#1750 * Fix broken Marketplace badges, drop superfluous ones in README shields.io retired its visual-studio-marketplace badge category (both now render "retired badge"); switch to vsmarketplacebadges.dev, which queries the Marketplace API directly. Also drop the Snyk badge and the redundant Caché/Ensemble badges, which now all link to the same InterSystems IRIS product page. * Switch packaging/publishing from deprecated vsce to @vscode/vsce The legacy `vsce` package's last published version (2.15.0, which npx resolves to since the package is no longer updated) hardcodes an SVG badge-host allowlist that only trusts the now-dead vsmarketplacebadge.apphb.com, not its replacement vsmarketplacebadges.dev. @vscode/vsce is the actively maintained successor and already trusts vsmarketplacebadges.dev. * Lite Terminal: syntax color pasted input that ends with a newline (intersystems-community#1866) * Podman support (intersystems-community#1859) * Bump js-yaml from 4.3.1 to 4.3.2 (intersystems-community#1868) Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 4.3.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.3.1...4.3.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix connection check prompting/disabling on a merely-stale session (intersystems-community#1864) * Lite Terminal: don't repaint a pasted block taller than the viewport (intersystems-community#1867) * Send synced deletes through the current connection (intersystems-community#1872) generateDeleteFn built its AtelierAPI once when the folder was indexed, so deletes kept the connection settings from activation: a folder enabled later never deleted on the server. Build it when the delete fires, as the save path does. Fixes intersystems-community#1871 Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> * Integration tests against an IRIS container for release-preparation PRs (intersystems-community#1870) * Integration tests against an IRIS container for release-preparation PRs Replaces the placeholder test with a suite that opens a multi-root workspace whose folders connect to one iris-community container by each supported mechanism (objectscript.conn host/port, docker-compose port resolution, intersystems.servers entry, isfs), plus an inactive folder pointing at an unreachable host. The container's /api/atelier session timeout is 10 s so expired-session recovery is exercised. Runs from a new prepare-release.yml workflow on PRs from prepare-* branches and on manual dispatch; the old npm test step is removed from the per-PR workflows. Also fixes the runner, which could not launch VS Code at all: bump @vscode/test-electron to 3.x (2.x looks for the renamed Contents/MacOS/Electron), drop the rejected -n arg, unset ELECTRON_RUN_AS_NODE inherited from extension-spawned terminals, use a fresh user-data-dir per run, and make the mocha runner's promise settle when the tests finish. Closes intersystems-community#1863 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Use Podman for the integration tests Run the IRIS containers under Podman and drop the runner's Docker Compose so the extension's docker-compose connection resolves through Podman too. Fixes the docker-compose case (needs objectscript.conn.active) and stops the post-timeout round-trip from re-verifying delete-sync, which older releases don't re-wire after a session lapses. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Trim the fixtures README to complement CASES.md Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Merge CASES.md into the fixtures README Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Drop the unneeded connection-check refactor and trim comments With one folder per launch nothing contends for the connection check, so the checkConnection rename and per-folder in-progress set are not needed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Restore the connection-check changes from intersystems-community#1864 They were reverted against a stale fork master, not the upstream base. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Name the compose services after the credentials variants named/anonymous, matching the case suffixes and server entries, so the service field goes away. Pin podman compose to podman-compose: Docker Desktop's CLI plugins otherwise make it run Docker Compose. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Number the checks in execution order Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * One README check per test, named alike Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Name the check helpers after their tests Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Say why checks 1 and 4 both exist Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Put the two resolve checks next to each other Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Name the paired checks OS/SM Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Spell out the extension names in checks 1 and 2 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Parallel wording for checks 1 and 2 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Clearer wording for how checks 1 and 2 relate Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Drop the rationale from check 2 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Rename check 4 to say what it lists Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Repeat every check after the timeout and after the active flip Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Repeat each check right after the session times out Every check gets its own idle so it is the first request on a lapsed session; before, the round trip re-authenticated and the rest ran fresh. Round trip moves last as the most expensive. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Don't restore active after the flip; nothing runs after it Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Verify the delete after the session times out too; brace all blocks The lenient repeat only accommodated the released build, which doesn't re-wire delete-sync after a lapse; the SM PR lists that as known-failing. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Say precisely why the flip can't verify the delete Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Verify the delete after the active flip too, now that intersystems-community#1872 is in Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Name the workflow and its steps after what they do Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Let compose wait for the IRIS healthchecks instead of a curl loop Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Trim the compose step comment Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Wait for the containers with podman, keep apt's podman-compose Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Type the extension APIs, drop any, and simplify the case constants Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Keep acronyms upper-case in identifiers Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Type the conn read instead of casting it Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Type the generated workspace settings and read conn back with the same type Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Reference the check helpers directly in the list Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Name the check helpers in the README Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Tighten the fixtures README Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Trim setup.sh comments Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Restore setup.sh, truncated by the previous commit Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Compact cases.ts and trim runTest.ts The matrix is a LAUNCHES constant; the servers, kinds and toggleable set are plain data; workspaceFile hoists the shared settings. runTest keeps master's extension installs and drops what the README documents. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Make SERVERS the intersystems.servers entries and build each workspace whole Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Destructure the server entry in workspaceFile Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Say why -inactive omits the active key Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Describe setup.sh up front Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Generate the client folder too, so .gitignore needs one line Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> * Prepare 3.8.6 release (intersystems-community#1873) Co-authored-by: Kuang-Chen (KC) Lu <klu@intersystems.com> * auto bump version with release * Remove use of deprecated `url.parse()` (intersystems-community#1877) * Remove unneeded dependency `istextorbinary` (intersystems-community#1878) * Remove unneeded dependency `iconv-lite` (intersystems-community#1879) * Fix server-side projects when connected to 2021.x (intersystems-community#1882) * Lite Terminal: color pasted input without repainting it (intersystems-community#1881) * Upgrade to TypeScript 6 (intersystems-community#1886) * Populate authorizations with session usernames (intersystems-community#1887) * fix intersystems-community#1750 * fix * s * s * s * s * s * s * Update docstrings for renamed functions Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix * s * Address review: name on settings fallback, configured username wins, lazy identity - getResolvedConnectionSpec takes the raw IJSONServerSpec and adds name: key, so the auth provider always gets a server-name scope; callers pin the settings read with get<IJSONServerSpec>() - resolveAuth prefers the configured username and ignores the UnknownUser placeholder the provider returns when its username prompt is dismissed - Status-bar identity is computed when used so the 401 retry shows the entered username - 401 handler skips the retry instead of throwing when no spec is available Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Drop UnknownUser guard: a blank username at the prompt is a deliberate choice, not a dismissal Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * undo rn * s * s * s * s * s * s * s * s * s * s * s * Keep the requested key as name on the settings fallback; build the spec copy in one spread Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * rename --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> * Support explicit 'UnknownUser' unauthenticated access (intersystems-community#1888) Companion to intersystems-community/intersystems-servermanager#366, which makes "username": "UnknownUser" request unauthenticated access. - Use BasicAuthorization and the corrected spec types from the 3.15.0-beta.3 package instead of a local copy. - Skip the Authorization header when it is empty. - On a 401 for UnknownUser, report the rejection instead of asking for a password. - Compare intersystems.servers changes against getServerSpec, so recording UnknownUser doesn't reconnect. - Document UnknownUser in the objectscript.conn schema. - Test UnknownUser for each connection kind. The '-anonymous' cases also accept UnknownUser, since Server Manager may record it during a run. * Bump fast-uri from 3.1.8 to 3.1.9 (intersystems-community#1890) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.8 to 3.1.9. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.8...v3.1.9) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump follow-redirects from 1.16.1 to 1.16.2 (intersystems-community#1892) Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.1 to 1.16.2. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.16.1...v1.16.2) --- updated-dependencies: - dependency-name: follow-redirects dependency-version: 1.16.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump serialize-javascript from 7.1.2 to 7.1.4 (intersystems-community#1891) Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 7.1.2 to 7.1.4. - [Release notes](https://github.com/yahoo/serialize-javascript/releases) - [Commits](yahoo/serialize-javascript@v7.1.2...v7.1.4) --- updated-dependencies: - dependency-name: serialize-javascript dependency-version: 7.1.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Prepare 3.8.7 release (intersystems-community#1894) * Fix publish job step ordering broken by 3.8.7 release-prep refactor (intersystems-community#1895) * Grant contents: write to the publish job alongside id-token: write (intersystems-community#1896) Declaring a job-level permissions block resets every unlisted scope to none for GITHUB_TOKEN, so adding id-token: write for OIDC vsce publish silently dropped contents: write. That broke Upload Release Asset (softprops/action-gh-release needs it to update the release) with "Resource not accessible by integration". * auto bump version with release * Remove `minimatch` dependency (intersystems-community#1898) * Fix importing of classes and routines through `Import and Compile` command (intersystems-community#1899) * Improve performance of initial index of client-side workspace folders (intersystems-community#1903) * Sync client-side web app files as raw bytes (intersystems-community#1901) * Keep the Authorization header out of the REST traffic log on network errors (intersystems-community#1906) The error block serialized the whole axios error, and axios includes the request config with its headers, so the Authorization header the request block had just redacted appeared a few lines below it. Log the error's message, as the rest of the extension does. Fixes intersystems-community#1905 * Give API clients only the chosen connection's plaintext password (intersystems-community#1907) * Prepare 3.8.8 release (intersystems-community#1911) * auto bump version with release * fix: atribuições mortas apontadas pelo ESLint 10 (no-useless-assignment) O ESLint 10, trazido pelo upstream, inclui no-useless-assignment no conjunto recommended. Os três casos estavam no código do fork e eram atribuições sem efeito: todo caminho reatribui o valor antes de lê-lo ou sai do laço. Nenhuma mudança de comportamento. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: AGENTS.md com o novo fluxo de testes de integração O npm test passou a rodar a matriz de casos do upstream contra containers IRIS. Registra como subir os containers, o filtro por caso e onde ficam os testes Consistem que não dependem de servidor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(test): restaurar VSCODE_EXECUTABLE_PATH e timeout de download no runTest Ao adotar o runTest.ts do upstream na resolução do merge, ficou de fora a customização do fork que permite apontar um VS Code já instalado (VSCODE_EXECUTABLE_PATH) e aumenta o tempo limite do download para 60 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kuang-Chen (KC) Lu <klu@intersystems.com> Co-authored-by: John Murray <johnm@georgejames.com> Co-authored-by: Brett Saviano <bsaviano@intersystems.com> Co-authored-by: ProjectBot <bot@users.noreply.github.com> Co-authored-by: globalerp-mhess <manuel.hess@globalerp.de> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Addresses #365.
"username": "UnknownUser"(any casing) properly:resolved()is true,accessTokenandhttpAuthorizationHeaderare"",credentialsis{}. Clients that set the header directly must skip it when empty; vscode-objectscript needs that change.UnknownUserfor the Unauthenticated choice.UnknownUser. A future release will drop the probe and always prompt when no username is set.UnknownUserin the README as the only way to request unauthenticated access, worded to survive the probe's removal.passwordwithoutusernameor alongsideUnknownUser.updateConfig, which serializes updates to theintersystems.serverssetting so concurrent writers cannot overwrite each other's changes.intersystems.serversthroughupdateConfig.Why the write lives in
getServerSpecIt is the only place with the server name, the settings scope, and every consumer passing through it.
makeRESTRequeston the first unauthenticated 2xxgetServerSpecand connect themselves.